import pandas as pd

电影信息 = pd.read_csv("movies.dat", encoding='latin-1', sep='::', keep_default_na=False, na_values='na_rep', header=None, engine='python', names='movieID::name::category'.split('::'))
评分信息 = pd.read_csv("ratings.dat", encoding='latin-1', sep='::', keep_default_na=False, na_values='na_rep', header=None, engine='python', names='userID::movieID::rating::1?'.split('::'))
用户信息 = pd.read_csv("users.dat", encoding='latin-1', sep='::', keep_default_na=False, na_values='na_rep', header=None, engine='python', names='userID::gender::age::2?::3?'.split('::'))

df1 = pd.merge(left=电影信息, right=评分信息)
df2 = pd.merge(left=df1, right=用户信息)
data = df2.head().to_html

def get_data():
    return data